FortiOS 5.4 Online Help Link FortiOS 5.2 Online Help Link FortiOS 5.0 Online Help Link FortiOS 4.3 Online Help Link

Home > Online Help

> Chapter 23 - System Administration > Firmware > Reverting to a previous firmware version - CLI

Reverting to a previous firmware version - CLI

This procedure reverts the FortiGate unit to its factory default configuration and deletes IPS custom signatures, web content lists, email filtering lists, and changes to replacement messages.

Before beginning this procedure, it is recommended that you:

  • back up the FortiGate unit system configuration using the command
    execute backup config
  • back up the IPS custom signatures using the command execute
    backup ipsuserdefsig
  • back up web content and email filtering lists

To use the following procedure, you must have a TFTP server the FortiGate unit can connect to.

To revert to a previous firmware version using the CLI
  1. Make sure the TFTP server is running
  2. Copy the firmware image file to the root directory of the TFTP server.
  3. Log into the FortiGate CLI.
  4. Make sure the FortiGate unit can connect to the TFTP server execute by using the execute ping command.
  5. Enter the following command to copy the firmware image from the TFTP server to the FortiGate unit:

execute restore image tftp <name_str> <tftp_ipv4>

Where <name_str> is the name of the firmware image file and <tftp_ip4> is the IP address of the TFTP server. For example, if the firmware image file name is imagev28.out and the IP address of the TFTP server is 192.168.1.168, enter:

execute restore image tftp image28.out 192.168.1.168

The FortiGate unit responds with this message:

This operation will replace the current firmware version!
Do you want to continue? (y/n)

  1. Type y.

    The FortiGate unit uploads the firmware image file. After the file uploads, a message similar to the following appears:

Get image from tftp server OK.

Check image OK.

This operation will downgrade the current firmware version!

Do you want to continue? (y/n)

 

  1. Type y.
  2. The FortiGate unit reverts to the old firmware version, resets the configuration to factory defaults, and restarts. This process takes a few minutes.
  3. Reconnect to the CLI.
  4. To restore your previous configuration, if needed, use the command:

execute restore config <name_str> <tftp_ip4>

 

  1. Update antivirus and attack definitions using the command:

execute update-now.